package com.mlog.njyjy.ndop.share.sql.annotation;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * <p>
 * eg: unique key `unique_col1_col2` (`col1`,`col2`)
 * </p>
 *
 * @author <a href="mailto:yingxiufeng@mlogcn.com">alex</a>
 * @version v1.0, 2020/7/10
 */
@Target({})
@Retention(RUNTIME)
public @interface TableUnique {

    /**
     *  (Optional) Constraint name.  A provider-chosen name will be chosen
     * 	if a name is not specified.
     * @return
     */
    String name() default "";

    /**
     * (Required) An array of the column names that make up the constraint.
     * 列名支持类字段名 或 数据表实际列名
     */
    String[] columns();
}
